package com.travel.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @TableName payment
 */
@TableName(value ="payment")
@Data
public class Payment {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long paymentId;

    /**
     * 
     */
    private String outTradeNo;

    /**
     * 
     */
    private String transactionId;

    /**
     * 
     */
    private BigDecimal amount;

    /**
     * 
     */
    private String currency;

    /**
     * 
     */
    private String paymentMethod;

    /**
     * 
     */
    private String paymentStatus;

    /**
     * 
     */
    private Date paymentTime;

    /**
     * 
     */
    private Date notifyTime;

    /**
     * 
     */
    private Long userId;

    /**
     * 
     */
    private Long orderId;

    /**
     * 
     */
    private String paymentInfo;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /**
     * 
     */
    private Date updatedAt;
}